function sendApiToupiao(i) {
    $.ajax({
        url: ' /toupiao/',
        type: 'POST',
        data: {"id": i},
        success: function (data) {
            console.log(data["Msg"])
            $('#toupiaoResult').text(data["Msg"])
        }
    })
}

function sendApiBaoming(i) {
    $.ajax({
        url: ' /baoming/',
        type: 'POST',
        data: {"name": i},
        success: function (data) {
            console.log(data);
            if (data["Status"] === "s") {
                console.log(data["Msg"]);
                alert("恭喜你，报名成功")
            } else {
                alert("不能重复报名")
            }
        }
    })
}

function sendApiChoujiang() {
    $.ajax({
        url: ' /choujiang/',
        type: 'POST',
        data: {},
        success: function (data) {
            alert(data["Msg"])
        }
    })
}

function getYZM() {
    $.ajax({
        url: ' /getYZM/',
        type: 'POST',
        data: {},
        success: function (data) {
            $('#YZM').val(data["Msg"])

        }
    })
}


function checkYZM() {
    $.ajax({
        url: ' /CheckYZM/',
        type: 'POST',
        data: {"uid":$("#YZM").val()},
        success: function (data) {
            let status = data["Status"];if (status==="s"){alert("OK")}else{alert("!OK")}

        }
    })
}

function FindInter(u,f) {
    $.ajax({
        url: ' /FindInter/',
        type: 'POST',
        data: {"u":u,"f":f},
        success: function (data) {
            if (data["Msg"]){alert(data["Msg"])}else{alert("哎。没有交集")}

        }
    })
}